#ifndef STFT_H
#define STFT_H

#include "FFT.h"
#include "RingMatrix.h"
#include "Dictionary.h"

class STFT
{
public:
	STFT();
	~STFT();

	RingMatrix getSTFT(double* samples, double samples_length, int nfft, double sample_rate );
	RingMatrix getSTFT(double* samples, double samples_length, int nfft, int nhop, double SampleRate);

	Dictionary getHighestSTFT(RingMatrix FullSpect, double SampleRate, int Interval);
	
private:
	double* Range;
	int getIndex(double freq);
	void BuildRange(double SampleRate, int Interval);
};

#endif